include(/mnt/Datos/Facultad/Latex/circuit_macros/pgf.m4)
include(/mnt/Datos/Facultad/Latex/circuit_macros/libcct.m4)
   
.PS 
cct_init
  
elen = 0.75
Origin: Here
	ground
	source(up_ elen*0.5, AC); llabel(,v_{s},)
	resistor(up_ elen*0.7); rlabel(,R_{s},)
	capacitor(right_ elen); llabel(, C_{s},)
	{
		line right_ 0.2
		MOS:mosfet(up_ ,, LEDSQuB,S) with .G at Here; rlabel(, BS170,)
	}
	{
		resistor(up_ elen*1.3); llabel(, R_{G1},)
		line right_ elen*0.72
		{
			line up_ elen*0.2
			dot; rlabel(,V_{DD},)
		}
		resistor(down_ to MOS.D); llabel(,R_{D},)
	}
	{
		resistor(down_ elen*1.3); rlabel(, R_{G2},)
		line right_ elen*0.72
		{
			{
				line from (Here.x,Here.y+0.1) to (Here.x + 0.3, Here.y + 0.1)
				capacitor(up_ elen*0.7); rlabel(, C_{S},)
				line left_ 0.28
			}
			resistor(up_ to MOS.S); llabel(, R_{S},)
		}
		line down_ 0.2;
		dot; llabel(,-V_{SS},)
	}
	# Agrego la carga
	dot(at (MOS.D.x,MOS.D.y+0.1)); rlabel(V_D)
	line from (MOS.D.x, MOS.D.y+0.1) to (MOS.D.x+0.7, MOS.D.y+0.1)
	resistor(down_ elen); llabel(, R_{L},)
	ground
.PE



